package com.chenliwu.design.patterns.structural_patterns.facade;

/**
 * @author chenlw
 * @since 2020-04-26
 */
public class ShapeMakerFacade {

    private DrawShape circle;
    private DrawShape rectangle;
    private DrawShape square;

    public ShapeMakerFacade() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }

}
